package model.menupages;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
import java.awt.HeadlessException;
import java.awt.LayoutManager;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.awt.TextField;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import javax.swing.JTable;

import view.Master;
import view.menuelements.MenuButton;
import view.menuelements.MenuLabel;
import view.menuelements.Menupanel;
import controller.Heytetrisapplication;
import controller.Highscorecontroller;

public class Creditpage extends JFrame {

	URL ressource = ClassLoader.getSystemResource("Credits_Transparent.png");
	Icon icon = new ImageIcon(ressource);
	JLabel centerpic = new JLabel(icon);
	private Menupanel Creditpanel = new Menupanel();
	private Menupanel Creditpanel1 = new Menupanel();
	private MenuLabel credits1 = new MenuLabel(
			"<html>"
					+ "heyTetris@ 2013. All Rights reserved.<br><br>"
					+ "Game Design:"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Ann-Katrin Brunner<br>"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Annika Lehmann<br>"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Sven Karcher<br><br>"
					+ "Tetris Game Code:"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Annika Folta<br>"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Jonas Baldowe<br>"
					+ "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "
					+ "Lukas Rauer<br><br>" + "Version 1.1.0<br></html>");

	public Creditpage() throws HeadlessException {
		super();
		Master.setStandardpageOptions(this);
		Master.addCloseButton(this);
		Master.addBackbutton(this);

		add(Creditpanel, BorderLayout.CENTER);

		credits1.setFont(new Font("Bauhaus 93", Font.BOLD, 20));

		Creditpanel.add(centerpic);
		Creditpanel1.add(credits1);
		Creditpanel.add(Creditpanel1);

		Dimension dimension = new Dimension(1000, 1000);

		Creditpanel1.setPreferredSize(dimension);
		Creditpanel1.setMinimumSize(dimension);
		Creditpanel1.setMaximumSize(dimension);
		Creditpanel.setPreferredSize(dimension);
		Creditpanel.setMinimumSize(dimension);
		Creditpanel.setMaximumSize(dimension);
		
		Master.setPageVisible(this);

	}
}
